ToArray Method

Task Parallel System.Threading

Copies the ConcurrentBag<(Of <(T>)>) elements to a new array.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Function ToArray As T()
C#
public T[] ToArray()

Return Value

A new array containing a snapshot of elements copied from the ConcurrentBag<(Of <(T>)>).

See Also